Method for brightness compensation in a display, brightness compensation circuit, and display device

ABSTRACT

A method to compensate for color-shifting at the periphery of a display device inputs for processing pre-display an image for display, acquires edge pixels where color-shifting occurs, and applies compensation in terms of a gray scale value to each of the edge pixels to reduce such color-shifting. An electronic circuit applying the method and a compensated display device are also disclosed.

FIELD

The subject matter herein generally relates to displays, specifically amethod for brightness compensation, a brightness compensation circuitapplying the brightness compensation method, and a display device usingthe brightness compensation circuit.

BACKGROUND

The arrangement of sub-pixels in a display panel is no longer limited toa standard RGB arrangement. In the standard RGB arrangement, each pixelincludes adjacent red, green, and blue sub-pixels, and each pixel canindependently display a desired color. In addition, the display panelcan have a non-standard sub-pixel arrangement, for example, a Pentilearrangement. In the Pentile arrangement, each pixel includes red andgreen sub-pixels or blue and green sub-pixels, and each pixel shares redand blue sub-pixels with one adjacent pixel. However, a display panelwith the non-standard sub-pixel arrangement often has a problem of acolor shift at the edge of a displayed image.

Therefore, there is room for improvement in the art.

BRIEF DESCRIPTION OF THE DRAWINGS

Implementations of the present disclosure will now be described, by wayof embodiment, with reference to the attached figures.

FIG. 1 is a flowchart of a method for brightness compensation accordingto an embodiment.

FIG. 2 is a schematic diagram of an arrangement of sub-pixels of adisplay panel according to block S1 of the method in FIG. 1.

FIG. 3 is a schematic diagram of a brightness compensation circuitaccording to an embodiment.

FIG. 4 is a schematic diagram of a display device using the brightnesscompensation circuit in FIG. 3.

DETAILED DESCRIPTION

It will be appreciated that for simplicity and clarity of illustration,where appropriate, reference numerals have been repeated among thedifferent figures to indicate corresponding or analogous elements. Inaddition, numerous specific details are set forth in order to provide athorough understanding of the exemplary embodiments described herein.However, it will be understood by those of ordinary skill in the artthat the exemplary embodiments described herein may be practiced withoutthese specific details. In other instances, methods, procedures, andcomponents have not been described in detail so as not to obscure therelated relevant feature being described. Also, the description is notto be considered as limiting the scope of the exemplary embodimentsdescribed herein. The drawings are not necessarily to scale and theproportions of certain parts may be exaggerated to better illustratedetails and features of the present disclosure.

The term “comprising” when utilized, means “including, but notnecessarily limited to”; it specifically indicates open-ended inclusionor membership in the so-described combination, group, series, and thelike. The disclosure is illustrated by way of example and not by way oflimitation in the figures of the accompanying drawings in which likereferences indicate similar elements. It should be noted that referencesto “an” or “one” embodiment in this disclosure are not necessarily tothe same embodiment, and such references can mean “at least one”. Theterm “circuit” is defined as an integrated circuit (IC) with a pluralityof electric elements, such as capacitors, resistors, amplifiers, and thelike.

One aspect of the present disclosure provides method for applyingbrightness compensation in a display, which includes: inputting an imageto be displayed onto the display panel, wherein the image to bedisplayed includes a plurality of pixels arranged in a plurality of rowsand a plurality of columns, and each of the plurality of pixels includesat least three sub-pixels of different colors; acquiring a plurality ofedge pixels corresponding to an edge of the image to be displayed,wherein the plurality of edge pixels are pixels that display edgeinformation of the image to be displayed; and compensating a gray scalevalue of each of the plurality of edge pixels.

The method for applying brightness compensation can solve the problem ofcolor shift at the edge of the displayed image by acquiring the edgepixels corresponding to the edge of the image to be displayed andcompensating the gray scale values of the edge pixels.

Another aspect of the present disclosure provides a brightnesscompensation circuit applied to a display panel. The brightnesscompensation circuit includes an edge pixel detection unit for acquiringa plurality of edge pixels corresponding to an edge of an image to bedisplayed on the display panel, wherein the image to be displayedincludes a plurality of pixels arranged in a plurality of rows and aplurality of columns, each of the plurality of pixels includes at leastthree sub-pixels of different colors, and the plurality of edge pixelsare pixels that display edge information of the image to be displayed;and a compensation unit electrically connected to the edge pixeldetection unit, wherein the compensation unit is configured forcompensating a gray scale value of each of the plurality of edge pixels.

The brightness compensation circuit detects the edge pixelscorresponding to the edge of the image to be displayed by the edge pixeldetection unit and compensates the gray scale values of the edge pixelsby the compensation unit, which can solve the problem of color shift atthe edge of the displayed image.

Yet another aspect of the present disclosure provides a display device.The display device includes a display panel and the brightnesscompensation circuit electrically connected to the display panel. Thebrightness compensation circuit is configured for compensatingbrightness of an image to be displayed by the display panel.

The display device includes the brightness compensation circuit, whichcan also solve the problem of color shift at the edge of the displayedimage.

FIG. 1 shows a flowchart of a method for applying brightnesscompensation in a display according to an embodiment. The example methodis provided by way of example, as there are a variety of ways to carryout the method. Each block shown in FIG. 1 represents one or moreprocesses, methods, or subroutines carried out in the example method.Furthermore, the illustrated order of blocks is by example only, and theorder of the blocks can be changed. Additional blocks can be added, orfewer blocks can be utilized, without departing from this disclosure.The example method can begin at block S1.

At block S1, an image to be displayed is input onto a display panel.

FIG. 2 shows a schematic diagram of an arrangement of sub-pixels of thedisplay panel according to block S1 in FIG. 1. The image to be displayedutilizes a plurality of pixels 11 arranged in a plurality of rows and aplurality of columns. Each pixel 11 includes at least three sub-pixelsof different colors. In block S1, the inputting of the image to bedisplayed includes inputting the initial gray scale value of eachsub-pixel in each pixel 11.

In one embodiment, the sub-pixel arrangement in the display panel may bea Pentile arrangement or a diamond arrangement. FIG. 2 shows the Pentilearrangement. As shown in FIG. 2, a plurality of sub-pixels is arrangedin a matrix. Each pixel 11 includes a first sub-pixel 111, a secondsub-pixel 112, and a third sub-pixel 113. The colors of the firstsub-pixel 111, the second sub-pixel 112, and the third sub-pixel 113 areblue, red, and green, respectively. The sub-pixels include firstsub-pixel columns 12 and second sub-pixel columns 13 arrangedalternately in a first direction X. In the first sub-pixel columns 12,only the first sub-pixels 111 are included. In each second sub-pixelcolumn 13, each second sub-pixel 112 is alternately arranged with onethird sub-pixel 113 in a second direction Y across the first directionX. Along the first direction X, if the left boundary of the displayedimage is located in the first sub-pixel column 12, that is, when thefirst sub-pixels 111 are closer to the edge of the image than the secondsub-pixels 112 and the third sub-pixels 113 are in the second sub-pixelcolumns 13, a color shift will occur on the left edge of displayedimage. Similarly, along the first direction X, if the left boundary ofthe displayed image is the second sub-pixel column 13, that is, when thesecond sub-pixels 112 and the third sub-pixels 113 in the secondsub-pixel column 13 are closer to the edge of the image than the firstsub-pixels 111 are, a color shift will again occur on the left edge ofthe displayed image.

In other embodiments, the arrangement of the first sub-pixels 111, thesecond sub-pixels 112, and the third sub-pixels 113 is not limited tothe arrangement described. For example, the first sub-pixel column 12can all be the second sub-pixels 112, and it will be the firstsub-pixels 111 and the third sub-pixels 113 in each of the secondsub-pixel column 13 which are alternately arranged.

In one embodiment, the image to be displayed utilizes N rows and Mcolumns of pixels 11, and both N and M are integers greater than orequal to three.

At block S2, a plurality of edge pixels corresponding to the edge of theimage to be displayed is acquired.

It should be noted that the image to be displayed refers to the graphicsin the display screen on the display panel, and not to the entiredisplay image. For example, when a ring is displayed on the displaypanel, the ring being white and a background being black, the image tobe displayed is a white ring excluding the black background.

It should also be noted that the edge pixels of the image to bedisplayed are pixels 11 that display edge information of the image to bedisplayed. For example, where the image to be displayed has N rows and Mcolumns of pixels 11, the edge pixels may be the pixels 11 in the firstrow (or last row, or the first column, or last column). In addition, theedge pixels may be pixels in the background of the image to be displayedadjacent to the pixels 11 of the first row (or last row, or the firstcolumn, or last column). Still taking the white ring as an example, thepixels 11 used to display the edge information of the white ring are thepixels 11 corresponding to the edge of the image to be displayed. Thatis, the outer and inner circumferences of the white ring are displayed.The white ring has two edges. The two edges are concentric circles. Theedge pixels corresponding to the edges of the image to be displayedinclude all the pixels 11 that display the information of the twoconcentric circles, including peripheral pixels 11 surrounding the twoconcentric circles on the white ring and peripheral pixels 11surrounding the two concentric circles on the black background.

In one embodiment, block S2 includes determination of a gray scale valueof each pixel 11. If the gray scale value of one pixel 11 is greaterthan a first gray scale threshold, the pixel 11 is defined as ahigh-value gray scale pixel. If the gray scale value of one pixel 11 isless than a second gray scale threshold, the pixel 11 is defined as alow-value gray scale pixel. The second gray scale threshold is less thanthe first gray scale threshold. The first gray level threshold and thesecond gray level threshold can be defined by the user. For example, ifthe gray scale value of a certain pixel 11 is 0 or less than a certainvalue, it is a low-value gray scale pixel, and if the gray scale valueof a certain pixel 11 is 255 or greater than a certain value, it is ahigh-value gray scale pixel.

In one embodiment, the brightness compensation method further includesgiving a certain marker to the high-value gray level pixel and othercertain marker to the low-value gray level pixel and storing the markersfor subsequent determination. The marker indicates the relativebrightness of the gray scale of the pixel. For example, if a pixel 11 isdefined as a low-value gray level pixel, that pixel 11 is marked as 1,and if a pixel 11 is defined as a high-value gray scale pixel, thatpixel 11 is marked as 0.

Block S2 further includes detecting a distribution of gray scale valuesof the plurality of pixels 11. In adjacent rows of the pixels 11, if allthe pixels 11 in one row are high-value gray scale pixels, and all thepixels 11 in the other row are low-value gray scale pixels, it isdetermined that the pixels 11 in the adjacent row are the edge pixels.In adjacent columns of the pixels 11, if all the pixels 11 in one columnare high-value gray scale pixels, and all the pixels 11 in the othercolumn are low-value gray scale pixels, it is determined that the pixels11 in the adjacent column are the edge pixels. In the block S2, the edgepixels are obtained by analyzing the distribution of the markers. Forexample, in adjacent rows of the pixels 11, if the markers of the pixels11 in one row are all 0, and the markers of the pixels 11 in the otherrow are all 1, it is determined that the pixels 11 in the adjacent rowssuddenly change vertically from low gray level to high gray level orchange vertically from high gray level to low gray level, and thereforethat the pixels 11 in the adjacent row are the edge pixels. Similarly,in adjacent columns of the pixels 11, if the markers of the pixels 11 inone column are all 0, and the markers of the pixels 11 in the othercolumn are all 1,it is determined that the pixels 11 in the adjacentcolumns change horizontally from low gray level to high gray level orchange horizontally from high gray level to low gray level, and thusthat the pixels 11 in the adjacent column are the edge pixels.

For example, when the image to be displayed is a black-and-whitepattern, the pixels 11 in the first row of an upper boundary of theimage to be displayed are white pixels, and the pixels 11 in thebackground adjacent to the pixels 11 of the first row of the upperboundary are black pixels. The gray scale values of the pixels 11 fromthe background to the upper boundary can be either 255 or can be zero.That is, the vertical change is from high gray scale to low gray scale.It can be determined that the pixels 11 in the first row of the upperboundary and the pixels 11 in the background adjacent to the pixels 11in the first row of the upper boundary are edge pixels.

Similarly, when the image to be displayed is white-and-black instead ofblack-and-white, the pixels 11 in the first row of the upper boundaryare black pixels, and the pixels 11 in the background adjacent to thepixels 11 of the first row of the upper boundary are white pixels. Thegray scale values of the pixels 11 from the background to the upperboundary are herein reversed, being either zero or 255. That is, thevertical change is from low gray scale to high gray scale. It can bedetermined that the pixels 11 in the first row of the upper boundary andthe pixels 11 in the background adjacent to the pixels 11 in the firstrow of the upper boundary are edge pixels. In addition, when the imageto be displayed is a color pattern, the principle is similar to that ofthe black-and-white pattern. The difference is that low gray scale isdefined as lower than a certain value greater than 0, and high grayscale is defined as higher than a certain value less than 255.

At block S3, compensation is applied to the gray scale value of eachedge pixel.

In one embodiment, at block S3, the gray scale values of the sub-pixelsin the edge pixels are compensated or the gray scale values of thesub-pixels in the pixels 11 that are in the same row and adjacent to theedge pixels are compensated, or the gray scale values of the sub-pixelsin the pixels 11 adjacent to the same column as the edge pixels arecompensated.

For example, when the image to be displayed is a black and whitepattern, the pixels 11 in the first row of the upper boundary of theimage to be displayed are white pixels, a row of pixels in thebackground adjacent to the white pixels are black pixels, andred-colored bleeding may appear at the edges of the white pixels. Thegray scale values of the sub-pixels (e.g., the red sub-pixels) in thewhite pixels 11 in the image to be displayed can be adjusted tocompensate, such as the white pixels 11 rendered as cyan, or the grayscale values of the sub-pixels in the black pixels 11 in the backgroundcan be adjusted, or the black pixels 11 rendered as reddish purple. Whenthe display panel displays the image as compensated, the color shiftphenomenon disappears.

It should be noted that the gray scale values of the sub-pixels in theedge pixels can be compensated separately, and the color shiftphenomenon can be eliminated by increasing or decreasing a certain grayscale value of a certain sub-pixel in the edge pixels The color shiftphenomenon can also be eliminated by compensating the gray scale valuesof sub-pixels in pixels that are in the same row (or the same column)and adjacent to the edge pixels, and neutralizing the brightness of theedge pixels and the adjacent pixels. In addition, not only can the grayscale values of the sub-pixels in the edge pixels be compensated, butthe gray scale values of the sub-pixels in the pixels adjacent theretocan also be compensated. The degree of compensation applied to grayscale values can be obtained through extensive experimentation beforethe display panel leaves the factory and the values stored in abrightness compensation circuit applied to the display panel.

In addition, the image to be displayed input in block S1 has a pixeldelay. After the image is calculated by the brightness compensationmethod, the compensated image is then output for display.

FIG. 3 shows a schematic diagram of a brightness compensation circuit 20applied to a display panel. The image to be displayed on the displaypanel includes a plurality of pixels 11 arranged in a plurality of rowsand a plurality of columns, and each pixel includes at least threesub-pixels of different colors.

As shown in FIG. 3, the brightness compensation circuit 20 includes alow-value gray scale pixel detection unit 21, a high-value gray scalepixel detection unit 22, a storage unit 23, an edge pixel detection unit24, and a compensation unit 25.

The high-value gray scale pixel detection unit 22 is electricallyconnected to the edge pixel detection unit 24. The high-value gray scalepixel detection unit 22 can determine a gray scale value of each pixel11 and can define each pixel 11 with the gray scale value greater than afirst gray scale threshold as a high-value gray scale pixel.

The low-value gray scale pixel detection unit 21 is electricallyconnected to the edge pixel detection unit 24. The low-value gray scalepixel detection unit 21 determines a gray scale value of each pixel 11and can define those with a gray scale value less than a second grayscale threshold as a low-value gray scale pixel. The second gray scalethreshold is less than the first gray scale threshold. The first graylevel threshold and the second gray level threshold can be defined bythe user. In addition, the high-value gray scale pixel detection unit 22is further configured for giving a marker to the high-value gray scalepixel, and the low-value gray scale pixel detection unit 21 is furtherconfigured for giving a marker to the low-value gray scale pixel.

The respective markers for high-value and low-value gray scale pixelslow-value gray scale pixel are stored in the storage unit 23. The edgepixel detection unit 24 is configured for analyzing a distribution ofthe markers to establish edge pixels.

The storage unit 23 is electrically connected to the high-value grayscale pixel detection unit 22, the low-value gray scale pixel detectionunit 21, and the edge pixel detection unit 24. The storage unit 23 isconfigured for storing the markers allocated by the high-value grayscale pixel detection unit 22 and the low-value gray scale pixeldetection unit 21 of the pixel 11 in the image to be displayed, for theedge pixel detection unit 24 to determine, and then obtain the edgepixels corresponding to the edge of the image to be displayed.

The edge pixel detection unit 24 obtains the edge pixels by detecting agray scale value distribution (e.g., a distribution of markers) of theplurality of pixels 11. In adjacent rows of the pixels 11, if the pixels11 in one row are all high-value gray scale pixels, and the pixels 11 inthe other row are all low-value gray scale pixels, the edge pixeldetection unit 24 determines that the pixels 11 in one of the adjacentrows are the edge pixels. In adjacent columns of the pixels 11, if thepixels 11 in one column are all high-value gray scale pixels, and thepixels 11 in the other column are all low-value gray scale pixels, theedge pixel detection unit 24 determines that one the pixels 11 in one ofthe adjacent columns are the edge pixels. That is, the edge pixeldetection unit 24 is configured for determining distributioncharacteristics of the gray scale values of all the pixels 11 in theimage to be displayed and determining whether the gray scale values ofall the pixels 11 change horizontally or vertically from high gray scaleto low gray scale, or horizontally or vertically from low gray scale tohigh gray scale. In addition, the edge pixel detection unit 24 isfurther configured for outputting a judgment result to the compensationunit 25 for compensation.

The compensation unit 25 is electrically connected to the edge pixeldetection unit 24. The compensation unit 25 receives the judgment resultof the edge pixel detection unit 24 and is configured for compensatingthe gray scale value of each edge pixel.

In one embodiment, the compensation unit 25 is configured forcompensating the gray scale values of the sub-pixels in the edge pixels,or to compensating the gray scale values of the sub-pixels in the pixels11 that are in the same row and adjacent to the edge pixels orcompensating the gray scale values of the sub-pixels in the pixels 11that are in the same column and adjacent to the edge pixels. The grayscale value is compensated or the gray scale value of the sub-pixel inthe pixel 11 adjacent to and in the same column as the edge pixel iscompensated. A compensation value can be adjusted according to the grayscale value of the sub-pixels.

FIG. 4 shows a schematic diagram of a display device 100 according to anembodiment. The display device 100 includes a display panel 10 and thebrightness compensation circuit 20. The brightness compensation circuit20 is electrically connected to the display panel 10 and is configuredfor compensating brightness of the image to be displayed on the displaypanel 10.

In one embodiment, the display panel 10 is an organic light-emittingdiode (OLED) display panel, and an arrangement of the sub-pixels of thedisplay panel is a Pentile arrangement or a diamond arrangement, each ofthe pixels includes a red sub-pixel and a green sub-pixel, or a bluesub-pixel and a green sub-pixel, and each of the pixels shares the redsub-pixel and blue sub-pixel with one adjacent pixel. In anotherembodiment, the display panel 10 may also be a liquid crystal display(LCD) panel or micro light-emitting diode (Micro LED) display panel, andan arrangement of the sub-pixels of the display panel is a Pentilearrangement or a diamond arrangement, each of the pixels includes a redsub-pixel and a green sub-pixel, or a blue sub-pixel and a greensub-pixel, and each of the pixels shares the red sub-pixel and bluesub-pixel with one adjacent pixel.

In another embodiment, the display panel 10 may be an OLED displaypanel, an LCD panel, or a Micro LED display panel, and an arrangement ofthe sub-pixels of the display panel is standard RGB arrangement, each ofthe plurality of pixels includes a red sub-pixel, a green sub-pixel, anda blue sub-pixel, and each of the plurality of pixels independentlydisplays a desired color. The display panel 10 with the standard RGBarrangement is less likely to have color shifts at the edges of theimage when displaying images, but it can also use the brightnesscompensation method in the embodiments of the present disclosure tosolve color shift. In one embodiment, the display device 100 is aproduct such as a tablet computer or a mobile phone.

It is to be understood, even though information and advantages of thepresent exemplary embodiments have been set forth in the foregoingdescription, together with details of the structures and functions ofthe present exemplary embodiments, the disclosure is illustrative only.Changes may be made in detail, especially in matters of shape, size, andarrangement of parts within the principles of the present exemplaryembodiments to the full extent indicated by the plain meaning of theterms in which the appended claims are expressed.

What is claimed is:
 1. A method for applying brightness compensation ina display, comprising: inputting an image to be displayed onto thedisplay panel, wherein the image to be displayed comprises a pluralityof pixels arranged in a plurality of rows and a plurality of columns,and each of the plurality of pixels comprises at least three sub-pixelsof different colors; acquiring a plurality of edge pixels correspondingto an edge of the image to be displayed, wherein the plurality of edgepixels are pixels that display edge information of the image to bedisplayed; and compensating a gray scale value of each of the pluralityof edge pixels.
 2. The method for applying brightness compensation ofclaim 1, wherein acquiring the plurality of edge pixels corresponding tothe edge of the image to be displayed comprises: judging a gray scalevalue of each of the plurality of pixels, defining each of the pluralityof pixels with the gray scale value greater than a first gray scalethreshold as a high-value gray scale pixel, and defining each of theplurality of pixels with the gray scale value less than a second grayscale threshold as a low-value gray scale pixel, wherein the second grayscale threshold is less than the first gray scale threshold; anddetecting a distribution of gray scale values the plurality of pixels,wherein if the pixels in one row are all high-value gray scale pixelsand the pixels in the other row are all low-value gray scale pixels inadjacent rows of the plurality of pixels, it is determined that thepixels in one of the adjacent rows are the edge pixels; if the pixels inone column are all high-value gray scale pixels and the pixels in theother column are all low-value gray scale pixels in adjacent columns ofthe plurality of pixels, it is determined that the pixels in one of theadjacent columns are the edge pixels.
 3. The method for applyingbrightness compensation of claim 1, wherein compensating the gray scalevalue of each of the plurality of edge pixels comprises: compensatingthe gray scale values of the sub-pixels in the plurality of edge pixelsor compensating the gray scale values of the sub-pixels in the pixelsthat are in the same row and adjacent to the plurality of edge pixels orcompensating the gray scale values of the sub-pixels in the pixels thatare in the same column and adjacent to the plurality of edge pixels. 4.The method for applying brightness compensation of claim 2, furthercomprising giving a certain marker to the high-value gray scale pixeland other certain marker to the low-value gray scale pixel, whereindetecting the distribution of gray scale values of the plurality ofpixels comprises analyzing a distribution of the markers to obtain theedge pixels.
 5. A brightness compensation circuit applied to a displaypanel, comprising: an edge pixel detection unit for acquiring aplurality of edge pixels corresponding to an edge of an image to bedisplayed on the display panel, wherein the image to be displayedcomprises a plurality of pixels arranged in a plurality of rows and aplurality of columns, each of the plurality of pixels comprises at leastthree sub-pixels of different colors, and the plurality of edge pixelsare pixels that display edge information of the image to be displayed;and a compensation unit electrically connected to the edge pixeldetection unit, wherein the compensation unit is configured forcompensating a gray scale value of each of the plurality of edge pixels.6. The brightness compensation circuit of claim 5, further comprising: ahigh-value gray scale pixel detection unit electrically connected to theedge pixel detection unit, wherein the high-value gray scale pixeldetection unit is configured for judging a gray scale value of each ofthe plurality of pixels, and defining each of the plurality of pixelswith the gray scale value greater than a first gray scale threshold as ahigh-value gray scale pixel; and a low-value gray scale pixel detectionunit electrically connected to the edge pixel detection unit, whereinthe low-value gray scale pixel detection unit is configured for judginga gray scale value of each of the plurality of pixels and defining eachof the plurality of pixels with the gray scale value less than a secondgray scale threshold as a low-value gray scale pixel, and the secondgray scale threshold is less than the first gray scale threshold.
 7. Thebrightness compensation circuit of claim 5, wherein the edge pixeldetection unit acquires the plurality of edge pixels by detecting adistribution of gray scale values of the plurality of pixels; wherein inadjacent rows of the plurality of pixels, if the pixels in one row areall high-value gray scale pixels and the pixels in the other row are alllow-value gray scale pixels, the edge pixel detection unit determinesthat the pixels in one of the adjacent rows are the edge pixels; inadjacent columns of the plurality of pixels, if the pixels in one columnare all high-value gray scale pixels and the pixels in the other columnare all low-value gray scale pixels, the edge pixel detection unitdetermines that the pixels in one of the adjacent columns are the edgepixels.
 8. The brightness compensation circuit of claim 5, wherein thecompensation unit is configured for compensating the gray scale valuesof the sub-pixels in the plurality of edge pixels or compensating thegray scale values of the sub-pixels in the pixels that are in the samerow and adjacent to the plurality of edge pixels or compensating thegray scale values of the sub-pixels in the pixels that are in the samecolumn and adjacent to the plurality of edge pixels.
 9. The brightnesscompensation circuit of claim 6, further comprising a storage unitelectrically connected to the high-value gray scale pixel detectionunit, the low-value gray scale pixel detection unit, and the edge pixeldetection unit; wherein the high-value gray scale pixel detection unitis further configured for giving a certain marker to the high-value grayscale pixel, and the low-value gray scale pixel detection unit isfurther configured for giving other certain marker to the low-value grayscale pixel; wherein the storage unit is configured for storing themakers of the high-value gray scale pixels and the makers of thelow-value gray scale pixels, and the edge pixel detection unit isconfigured for analyzing a distribution of the makers to obtain the edgepixels.
 10. A display device comprising: a display panel; and abrightness compensation circuit electrically connected to the displaypanel; the brightness compensation circuit being configured forcompensating brightness of an image to be displayed by the displaypanel; wherein the brightness compensation circuit comprises: an edgepixel detection unit for acquiring a plurality of edge pixelscorresponding to an edge of the image to be displayed on the displaypanel, wherein the image to be displayed comprises a plurality of pixelsarranged in a plurality of rows and a plurality of columns, each of theplurality of pixels comprises at least three sub-pixels of differentcolors, and the plurality of edge pixels are pixels that display edgeinformation of the image to be displayed; and a compensation unitelectrically connected to the edge pixel detection unit, wherein thecompensation unit is configured for compensating a gray scale value ofeach of the plurality of edge pixels.
 11. The display device of claim10, wherein the brightness compensation circuit further comprises: ahigh-value gray scale pixel detection unit electrically connected to theedge pixel detection unit, wherein the high-value gray scale pixeldetection unit is configured for judging a gray scale value of each ofthe plurality of pixels, and defining each of the plurality of pixelswith the gray scale value greater than a first gray scale threshold as ahigh-value gray scale pixel; and a low-value gray scale pixel detectionunit electrically connected to the edge pixel detection unit, whereinthe low-value gray scale pixel detection unit is configured for judginga gray scale value of each of the plurality of pixels and defining eachof the plurality of pixels with the gray scale value less than a secondgray scale threshold as a low-value gray scale pixel, and the secondgray scale threshold is less than the first gray scale threshold. 12.The display device of claim 10, wherein the edge pixel detection unitacquires the plurality of edge pixels by detecting a gray scale valuedistribution of the plurality of pixels; wherein if the pixels in onerow are all high-value gray scale pixels and the pixels in the other roware all low-value gray scale pixels in adjacent rows of the plurality ofpixels, the edge pixel detection unit determines that the pixels in oneof the adjacent rows are the edge pixels; if the pixels in one columnare all high-value gray scale pixels and the pixels in the other columnare all low-value gray scale pixels in adjacent columns of the pluralityof pixels, the edge pixel detection unit determines that the pixels inone of the adjacent columns are the edge pixels.
 13. The display deviceof claim 10, wherein the compensation unit is configured forcompensating the gray scale values of the sub-pixels in the plurality ofedge pixels or compensating the gray scale values of the sub-pixels inthe pixels that are in the same row and adjacent to the plurality ofedge pixels or compensating the gray scale values of the sub-pixels inthe pixels that are in the same column and adjacent to the plurality ofedge pixels.
 14. The display device of claim 11, wherein the brightnesscompensation circuit further comprises: a storage unit electricallyconnected to the high-value gray scale pixel detection unit, thelow-value gray scale pixel detection unit, and the edge pixel detectionunit; wherein the high-value gray scale pixel detection unit is furtherconfigured for giving a certain marker to the high-value gray scalepixel, and the low-value gray scale pixel detection unit is furtherconfigured for giving other certain marker to the low-value gray scalepixel; wherein the storage unit is configured for storing the makers ofthe high-value gray scale pixels and the makers of the low-value grayscale pixels, and the edge pixel detection unit is configured foranalyzing a distribution of the makers to obtain the edge pixels. 15.The display device of claim 10, wherein the display panel is an organiclight-emitting diode display panel, a liquid crystal display panel, or amicro light-emitting diode display panel.
 16. The display device ofclaim 10, wherein an arrangement of the sub-pixels of the display panelis a Pentile arrangement or a diamond arrangement, each of the pluralityof pixels comprises a red sub-pixel and a green sub-pixel, or a bluesub-pixel and a green sub-pixel, and each of the plurality of pixelsshares the red sub-pixel and blue sub-pixel with one adjacent pixel.